<template>
	<div style="margin-top: 8px;">
		子组件接受父组件ID:{{fatherId}}
	</div>
</template>

<script>
	import { ref, reactive,inject } from 'vue'
	export default {
		name: "children",
		setup() {
			let fatherId=inject('id')
			return {
        fatherId
			}
		}
	};
</script>